import Layout from "@/components/Layout/Index.vue"
import { RouteRecordRaw } from "vue-router"
const routes: Array<RouteRecordRaw> = [
    {
        component: Layout,
        path: "/",
        redirect: {
            name: "Article"
        },
        children: [
            {
                path: '/Article',
                name: 'Article',
                component: () => import("@/views/Article/Index.vue")
            },
            {
                path: '/editArticle/:id',
                name: "editArticle",
                component: () => import("@/views/Article/OperationItem.vue")
            },
            {
                path: '/addArticle',
                name: "addArticle",
                component: () => import("@/views/Article/OperationItem.vue")
            }
        ]
    }
]

export default routes